package com.sumainfor.pc.market.controller.rentadviser;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.market.service.RdJobService;
import com.sumainfor.pc.market.service.RdOwnerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * 业主
 */
@RestController
@RequestMapping("/tenant/key/rentadviser/RdWxOwner")
public class RdWxOwnerController implements Serializable {
    @Autowired
    private RdOwnerService rdOwnerService;
    /**
     * 查询房源与业主的合同截止时间
     */
    @GetMapping("/getTimeCountOwner")
    public JsonResult getTimeCountOwner(@RequestParam Map<String,Object> params){
        System.out.println("params:"+params);
       return rdOwnerService.getTimeCountOwner(params);
    }
}
